testsuite: Fix gesture test inconsistencies due to legacy event handling
authorCarlos Garnacho <carlosg@gnome.org>
Thu, 12 Oct 2017 12:22:04 +0000 (14:22 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Thu, 12 Oct 2017 12:47:15 +0000 (14:47 +0200)
Legacy GtkWidget vmethods are now handled on an event controller, which
due to being the very first controller added to every widget, runs in
a different order than the previously hardcoded.

Probably testing legacy events is not really futurible, specially after
we stop installing this legacy controller by default. I'll leave the
choice to remove these specific tests for later though.

testsuite/gtk/gestures.c

index d32fcf084216ce07a232cd059ba382a8c70c6303..4cfe5886b71b6141d5011e8789b77081b5c69a5f 100644 (file)
@@ -474,12 +474,12 @@ test_mixed (void)
                    "capture b1, "
                    "capture c1, "
                    "target c2, "
-                   "legacy C, "
                    "bubble c3, "
-                   "legacy B, "
+                   "legacy C, "
                    "bubble b3, "
-                   "legacy A, "
-                   "bubble a3");
+                   "legacy B, "
+                   "bubble a3, "
+                   "legacy A");
 
   g_string_free (str, TRUE);
 
@@ -531,8 +531,9 @@ test_early_exit (void)
                    "capture b1, "
                    "capture c1, "
                    "target c2, "
-                   "legacy C, "
                    "bubble c3, "
+                   "legacy C, "
+                   "bubble b3, "
                    "legacy B");
 
   g_string_free (str, TRUE);